<template>
  <add-exter-commun :title="title" source-type="4" :flow-id="flowId" />
</template>
<script>
import AddExterCommun from '@/pages/ExterCommun/add';
export default {
  name: 'AllBureausAdd',
  data() {
    return {
      flowId: '',
      title: '线索上报'
    };
  },
  components: {
    AddExterCommun
  },
  created() {
    // 有this.$route.params.id说明是编辑
    if (this.$route.params.id) {
      if (this.$route.params.isKssb) {
        // 快速上报
        this.title = '快速上报';
        this.flowId = this.$route.params.id;
      } else {
        this.title = '线索编辑';
        this.flowId = this.$route.params.id;
      }
    }
  }
};
</script>
